package 第四天

/**
 * 对应java的bin类
 */

fun main() {
    val sms = Sms("内容", "zhangsan ", 789)
    println(sms)
    println(sms.component1())
    println(sms.time)

}

//data class
data class Sms(var message: String, var from: String, var time: Long)